import cv2 as cv
import numpy as np
img1 = cv.imread('../../data/ml.png')
img3 = cv.imread('../../data/opencv-logo.png')
if img1 is None or img3 is None:
    print("[ERROR] fail to read Image!!!")
    exit(0)
print(img1.shape, img3.shape)
img2 = cv.resize(img3,(img1.shape[1],img1.shape[0]))
print(img2.shape)
dst =cv.addWeighted(img1,0.7,img2,0.3,0)
cv.imshow('dst',dst)
cv.waitKey(0)
cv.destroyAllWindows()